﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFReserva" in both code and config file together.
    [ServiceContract]
    public interface IWCFReserva
    {
        [OperationContract]
        List<DTO.Reserva> list();

        [OperationContract]
        DTO.Reserva getByID(int id);

        [OperationContract]
        List<DTO.Reserva> getByIDChegada(int id);

        [OperationContract]
        List<DTO.Reserva> getByIDPartida(int id);

        [OperationContract]
        List<DTO.Reserva> getByIDTransporteIda(int id);

        [OperationContract]
        List<DTO.Reserva> getByIDTransporteVolta(int id);

        [OperationContract]
        List<DTO.Reserva> getByCliente(int idCliente);

        [OperationContract]
        List<DTO.Reserva> getByAgencia(int idAgencia);

        [OperationContract]
        List<DTO.Reserva> getByDataReserva(String dataReserva);

        [OperationContract]
        List<DTO.Reserva> getByDataPartida(String data);

        [OperationContract]
        List<DTO.Reserva> getByDataChegada(String data);

        [OperationContract]
        void insert(DTO.Reserva toInsert);

        [OperationContract]
        void update(DTO.Reserva toUpdate);

        [OperationContract]
        void delete(int id);
    }
}
